package com.game.modular.game.battle.process.skillEffectHandle.impl;

import com.game.modular.game.battle.panel.attribute.PlayerHeroAttributeServiceImpl;
import com.game.modular.game.battle.panel.attribute.domain.PlayerHeroAttribute;
import com.game.modular.game.battle.panel.skillEffect.PvpSkillEffectServiceImpl;
import com.game.modular.game.battle.panel.skillEffect.domain.SkillEffectStatus;
import com.game.modular.game.battle.process.skillEffectHandle.base.BaseSkillEffectStrategy;
import com.game.modular.game.battle.panel.skillEffect.PvpSkillEffect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component
public class AttributeStrategy extends BaseSkillEffectStrategy {
    @Resource
    private PvpSkillEffectServiceImpl skillEffectService;
    @Resource
    private PlayerHeroAttributeServiceImpl attributeService;

    @Override
    public PvpSkillEffect applyEffect(PvpSkillEffect pvpSkillEffect) {

        effectHandle1.tryInitProperties(pvpSkillEffect);
        effectHandle2.tryTriggerJudgment(pvpSkillEffect);
        effectHandle2.logTriggerFailReasons(pvpSkillEffect);

        effectHandle4.tryHandleLayerValue(pvpSkillEffect);
        effectHandle5.tryCoverHandle(pvpSkillEffect);
        effectHandle6.tryLogAndRefresh(pvpSkillEffect);
        return pvpSkillEffect;
    }
    public void apply(PlayerHeroAttribute targetAttribute){
    }
}
